package org.example.leetcode.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhc
 * @since 2024-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserQuestionLog implements Serializable {

    public static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    public Long id;

    public String userPhone;

    public String questionTitleSlug;

    public String codeText;

    /**
     * 0:待提交，1：提交成功，2：提交有错误
     */
    public String status;
    public Long questionId;
    public String codeStatus;

    public String creator;

    public String modifier;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;

    @TableLogic
    public String isDeleted;
    private Double correctRate;
    private String language;


}
